package com.study.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class PageController {
	
	@RequestMapping(value = "/welcome",method=RequestMethod.GET)
	public String showWelcomePage() {
		return "welcome";
	}
	
	@RequestMapping(value = "/personalInfo", method = RequestMethod.GET)
    public String showPersonalInfoPage() {
        return "personalInfo"; // 返回个人信息页面的视图名称
    }

    @RequestMapping(value = "/courseSelection", method = RequestMethod.GET)
    public String showCourseSelectionPage() {
        return "courseSelection"; // 返回选课页面的视图名称
    }

    @RequestMapping(value = "/displaySelection", method = RequestMethod.POST)
    public String showSelectionResultsPage() {
        // 处理选课结果，并将个人信息和选课结果传递给展示选课结果页面
        return "displaySelection"; // 返回展示选课结果页面的视图名称
    }

}
